package org.exez.modules.quartz.job;

import lombok.extern.slf4j.Slf4j;
import org.exez.modules.visitor.service.IVisitorAccessreService;
import org.exez.modules.visitor.service.PoliceService;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * 示例带参定时任务
 *
 * @Author Scott
 */
@Slf4j
public class DeletedAccessreJob implements Job {

	@Autowired
	private IVisitorAccessreService visitorAccessreService;

	@Override
	public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {

		log.info("=============出入记录图片删除开始======================");

		visitorAccessreService.deleteMonthRecord();

		log.info("=============出入记录图片删除结束======================");
	}
}
